import request from "@/api/request";

export function login(query) {
  return request({
    url: "/mobile/login",
    method: "post",
    data: query
  });
}

export function getInfo(token) {
  return request({
    url: "/user/info",
    method: "get",
    params: { token }
  });
}

export function logout() {
  return request({
    url: "/user/logout",
    method: "post"
  });
}
